package com.sls.web.manager.recharge.pojo;

import java.io.Serializable;
import java.util.Date;

public class CardInfo implements Serializable {
	private String cardId;

	private String cardSerial;

	private String cardName;

	private String cardPassword;

	private Integer cardType;

	private String cardImportBatchNum;

	private String cardExportBatchNum;

	private Integer cardPrice;

	private Double cardCost;

	private Date cardEffectTime;

	private Date createTime;

	private Boolean enable;

	private String productId;

	private String orderId;

	private Date saleTime;

	private String providerId;

	private String providerName;

	/**
	 * 进货源ID
	 */
	private String stockSupplierId;

	/**
	 * 进货源名字
	 */
	private String stockSupplierName;

	/**
	 * 卡密状态:<br>
	 * 1,在库;2,已使用;3,错卡:4,退卡 <br>
	 * -- <S>代销售:0,已销售:1,已出库:2</S>
	 */
	private Integer status;
	/**
	 * 号码类型(手机,固话)
	 */
	private String phoneType;
	private String operatingAgenciesType;

	private String operatingAgenciesName;

	private String adaptableArea;

	private String adaptableAreaName;

	private Integer useLevel;

	private String remark;

	private Date updateTime;

	private String updateOperator;

	private static final long serialVersionUID = 1L;

	public String getStatusName() {
		// 状态(1,在库;2:出库;3,已使用;4,错卡:5,退卡)
		String result = "";
		if (status != null) {
			switch (status) {
			case 1:
				result = "在库";
				break;
			case 2:
				result = "出库";
				break;
			case 3:
				result = "已使用";
				break;
			case 4:
				result = "错卡";
				break;
			case 5:
				result = "退卡";
				break;
			default:
				break;
			}
		}
		return result;
	}

	public String getCardId() {
		return cardId;
	}

	public void setCardId(String cardId) {
		this.cardId = cardId == null ? null : cardId.trim();
	}

	public String getCardSerial() {
		return cardSerial;
	}

	public void setCardSerial(String cardSerial) {
		this.cardSerial = cardSerial == null ? null : cardSerial.trim();
	}

	public String getCardName() {
		return cardName;
	}

	public void setCardName(String cardName) {
		this.cardName = cardName == null ? null : cardName.trim();
	}

	public String getCardPassword() {
		return cardPassword;
	}

	public void setCardPassword(String cardPassword) {
		this.cardPassword = cardPassword == null ? null : cardPassword.trim();
	}

	public Integer getCardType() {
		return cardType;
	}

	public void setCardType(Integer cardType) {
		this.cardType = cardType;
	}

	public String getCardImportBatchNum() {
		return cardImportBatchNum;
	}

	public void setCardImportBatchNum(String cardImportBatchNum) {
		this.cardImportBatchNum = cardImportBatchNum;
	}

	public String getCardExportBatchNum() {
		return cardExportBatchNum;
	}

	public void setCardExportBatchNum(String cardExportBatchNum) {
		this.cardExportBatchNum = cardExportBatchNum;
	}

	public Integer getCardPrice() {
		return cardPrice;
	}

	public void setCardPrice(Integer cardPrice) {
		this.cardPrice = cardPrice;
	}

	public Double getCardCost() {
		return cardCost;
	}

	public void setCardCost(Double cardCost) {
		this.cardCost = cardCost;
	}

	public Date getCardEffectTime() {
		return cardEffectTime;
	}

	public void setCardEffectTime(Date cardEffectTime) {
		this.cardEffectTime = cardEffectTime;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId == null ? null : productId.trim();
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId == null ? null : orderId.trim();
	}

	public Date getSaleTime() {
		return saleTime;
	}

	public void setSaleTime(Date saleTime) {
		this.saleTime = saleTime;
	}

	/**
	 * 卡密状态:<br>
	 * 1,在库;2,已使用;3,错卡:4,退卡 <br>
	 */
	public Integer getStatus() {
		return status;
	}

	/**
	 * 代销售:0,已销售:1,已出库:2
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getProviderName() {
		return providerName;
	}

	public void setProviderName(String providerName) {
		this.providerName = providerName == null ? null : providerName.trim();
	}

	public String getOperatingAgenciesType() {
		return operatingAgenciesType;
	}

	public void setOperatingAgenciesType(String operatingAgenciesType) {
		this.operatingAgenciesType = operatingAgenciesType;
	}

	public String getAdaptableArea() {
		return adaptableArea;
	}

	public void setAdaptableArea(String adaptableArea) {
		this.adaptableArea = adaptableArea == null ? null : adaptableArea
				.trim();
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark == null ? null : remark.trim();
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Boolean getEnable() {
		return enable;
	}

	public void setEnable(Boolean enable) {
		this.enable = enable;
	}

	public Integer getUseLevel() {
		return useLevel;
	}

	public void setUseLevel(Integer useLevel) {
		this.useLevel = useLevel;
	}

	public String getProviderId() {
		return providerId;
	}

	public void setProviderId(String providerId) {
		this.providerId = providerId;
	}

	public String getStockSupplierId() {
		return stockSupplierId;
	}

	public void setStockSupplierId(String stockSupplierId) {
		this.stockSupplierId = stockSupplierId;
	}

	public String getStockSupplierName() {
		return stockSupplierName;
	}

	public void setStockSupplierName(String stockSupplierName) {
		this.stockSupplierName = stockSupplierName;
	}

	public String getAdaptableAreaName() {
		return adaptableAreaName;
	}

	public void setAdaptableAreaName(String adaptableAreaName) {
		this.adaptableAreaName = adaptableAreaName;
	}

	public String getOperatingAgenciesName() {
		return operatingAgenciesName;
	}

	public void setOperatingAgenciesName(String operatingAgenciesName) {
		this.operatingAgenciesName = operatingAgenciesName;
	}

	public String getPhoneType() {
		return phoneType;
	}

	public void setPhoneType(String phoneType) {
		this.phoneType = phoneType;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getUpdateOperator() {
		return updateOperator;
	}

	public void setUpdateOperator(String updateOperator) {
		this.updateOperator = updateOperator;
	}
}